ActionController::Routing::Routes.draw do |map|


  # Various XML Resources
  map.resources :comments
  map.resources :posts
  map.resources :pages

  # The default (root) controller to go to
  map.root :controller => "posts"

  # Searches
  map.connect '/searches/dates/:year/:month', :controller => "searches", :action => "dates"
  map.connect '/searches/tag/:tag', :controller => "searches", :action => "tag"
  
  # API
  map.connect '/xmlrpc', :controller => "web_services", :action => "api"
  map.connect '/api', :controller => "web_services", :action => "api"
  
  # default routes
  map.connect ':controller/:action/:id'
  map.connect ':controller/:action/:id.:format'
    
end
